package com.crm.dao;

import com.crm.model.ConsultInfoManagePay;
import com.crm.model.ConsultInfoManagePayExample;
import com.crm.model.entity.ConsultInfoManagePayEntity;

import java.util.List;
import java.util.Map;

public interface ConsultInfoManagePayMapper extends BaseMapper<ConsultInfoManagePay>{
    int deleteByPrimaryKey(String infoManagePay);

    int insert(ConsultInfoManagePay record);

    int insertSelective(ConsultInfoManagePay record);

    List<ConsultInfoManagePay> selectByExample(ConsultInfoManagePayExample example);

    ConsultInfoManagePay selectByPrimaryKey(String infoManagePay);

    int updateByPrimaryKeySelective(ConsultInfoManagePay record);

    int updateByPrimaryKey(ConsultInfoManagePay record);
    
    public List<ConsultInfoManagePayEntity> selectPayDetail(ConsultInfoManagePayEntity consultInfoManagePayEntity);
    
    public List<Map<String,Object>> selectKindOfPayCount(ConsultInfoManagePayEntity consultInfoManagePayEntity);
    
    public List<ConsultInfoManagePay> getPayDetailByInfoId(String infoManageId);
    
    ConsultInfoManagePay getPaySumByInfoId(String infoManageId);
}